{{define "Title"}}Set Testing{{end}}
{{define "Content"}}

<div class="container-fluid">
<form class="form-horizontal" action="/settest" method="POST">
  <fieldset>
    <legend><b>Set Testing</b></legend>
    {{if .error}}<div class="alert alert-error"><b>Error: </b>{{.error | html}}</div>
    {{else }}
      {{if .flash}}<div class="alert alert-success"><b>Infomation: </b>{{.flash | html}}</div>{{end}}
    {{end}}
    <div class="control-group">
      <label class="control-label">Item&nbsp;</label>
      <div class="control">
        <select id="item" name="item" style="background-color: #FFFFD0" onmousewheel="return false">
          <option value="">
          {{range .items}}
            <option value="{{.Item | html}}">{{.Item | html}}  |  {{.Desc | html}}
          {{end}}
        </select> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">Station&nbsp;</label>
      <div class="control">
        <select id="station" name="station" style="background-color: #FFFFD0" onmousewheel="return false">
          <option value="">
          {{range .stations}}
            <option value="{{.Name | html}}">{{.Name | html}}
          {{end}}
        </select> <b style="color: red">*</b>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">Max Times&nbsp;</label>
      <div class="control">
        <input type="text" class="input-large" id="times" name="times" value="1">
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">Set Testing</button>
    </div>
  </fieldset>
</form>
</div>
  
{{end}}